package com.ssm.apis;

import com.ssm.server.test.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class TestApi {

    @Autowired
    private TestService testService;

    @GetMapping("getString")
    @ResponseBody//127.0.0.1:8080/Three.../test/getString
    public String getTestString(){
        return this.testService.getMyString() ;
    }
}
